package com.tudouji.project.bill.service.impl;

import java.math.BigDecimal;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.bill.mapper.TransferapplyitemMapper;
import com.tudouji.project.bill.domain.Transferapplyitem;
import com.tudouji.project.bill.service.ITransferapplyitemService;

/**
 * 库房调拨明细Service业务层处理
 * 
 * @author tudouji
 * @date 2021-03-22
 */
@Service
public class TransferapplyitemServiceImpl implements ITransferapplyitemService 
{
    @Autowired
    private TransferapplyitemMapper transferapplyitemMapper;

    /**
     * 查询库房调拨明细
     * 
     * @param guid 库房调拨明细ID
     * @return 库房调拨明细
     */
    @Override
    public Transferapplyitem selectTransferapplyitemById(String guid)
    {
        return transferapplyitemMapper.selectTransferapplyitemById(guid);
    }

    /**
     * 查询库房调拨明细列表
     * 
     * @param transferapplyitem 库房调拨明细
     * @return 库房调拨明细
     */
    @Override
    public List<Transferapplyitem> selectTransferapplyitemList(Transferapplyitem transferapplyitem)
    {
        return transferapplyitemMapper.selectTransferapplyitemList(transferapplyitem);
    }

    /**
     * 新增库房调拨明细
     * 
     * @param transferapplyitem 库房调拨明细
     * @return 结果
     */
    @Override
    public int insertTransferapplyitem(Transferapplyitem transferapplyitem)
    {
        return transferapplyitemMapper.insertTransferapplyitem(transferapplyitem);
    }

    /**
     * 修改库房调拨明细
     * 
     * @param transferapplyitem 库房调拨明细
     * @return 结果
     */
    @Override
    public int updateTransferapplyitem(Transferapplyitem transferapplyitem)
    {
        return transferapplyitemMapper.updateTransferapplyitem(transferapplyitem);
    }

    /**
     * 批量删除库房调拨明细
     * 
     * @param guids 需要删除的库房调拨明细ID
     * @return 结果
     */
    @Override
    public int deleteTransferapplyitemByIds(String[] guids)
    {
        return transferapplyitemMapper.deleteTransferapplyitemByIds(guids);
    }

    /**
     * 删除库房调拨明细信息
     * 
     * @param guid 库房调拨明细ID
     * @return 结果
     */
    @Override
    public int deleteTransferapplyitemById(String guid)
    {
        return transferapplyitemMapper.deleteTransferapplyitemById(guid);
    }

    @Override
    public BigDecimal selectPriceBySpeId(Transferapplyitem transferapplyitem) {
        return transferapplyitemMapper.selectPriceBySpeId(transferapplyitem);
    }
}
